package com.alibaba.citrus.cr.platform.enhance.repository;

import java.util.List;

import com.alibaba.citrus.cr.platform.enhance.repository.model.diff.ConsignmentOrder.ConsignmentOrderDTO;
import com.alibaba.citrus.cr.platform.enhance.repository.model.diff.ConsignmentOrder.ConsignmentOrderLineDTO;
import com.alibaba.lattice2.epoch.sdk.model.Result;

/**
 * 交货单资源层
 */
public interface ConsignmentOrderRepository {
    /**
     * 查询交货单
     * @param deliveryOrderId 交货单主单id
     * @return 交货单主单
     */
    Result<ConsignmentOrderDTO> queryBySap(String deliveryOrderId);

    /**
     * 查询交货子单
     * @param consignmentOrderId
     * @return 交货子单
     */
    Result<List<ConsignmentOrderLineDTO>> queryConsignmentOrderLine(String consignmentOrderId);
}
